import java.util.Scanner;

public class Main1602 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int x=sc.nextInt();
        int y= sc.nextInt();
        int z= sc.nextInt();
        int a=x+y+z;
        double b=(x+y+z)/3.0;
        System.out.println(a);
        System.out.println(String.format("%.1f",b));
    }
}
